<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //编写一个函数，计算三个数字的大小，按从小到大的顺序输出。
        function count(a, b, c) {
            if (a > b && a > c) {
                if (b > c) {
                    console.log(a, b, c);
                } else {
                    console.log(a, c, b);
                }
            } else if (a < b && a > c) {
                console.log(b, a, c);
            } else if (a > b && a < c) {
                console.log(c, a, b);
            } else if (a < b && a < c) {
                if (b > c) {
                    console.log(b, c, a);
                } else {
                    console.log(c, b, a);
                }
            }
        }
        var a = +prompt("请输入一个数字:");
        var b = prompt("请输入一个数字:");
        var c = +prompt("请输入一个数字:");
        count(a, b, c);
    </script>
</body>

</html>